package com.lq.demo.demo.mode.observer;

public class ObserverApp {

    public  static  void main(String[]args){

        Transporter transporter=new Transporter();
        Thief thief=new Thief();
        Police police=new Police();
        Security security=new Security();

        transporter.addWatcher(thief);
        transporter.addWatcher(police);
        transporter.addWatcher(security);

        transporter.setMessage("被关注的我说：  我身上有好多珠宝 被人虎视眈眈盯着 好危险啊 ");


    }
}
